# This script defines the regression variables and used in the analysis

# dependent variables
dv_ced = "percent"
dv_prim = "ppct"
dv_gen = "gpct"

# independent variables
iv_first_algorithm = "scale(first_algorithm)"
iv_last_algorithm = "scale(last_algorithm)"
iv_first_commonality = "scale(fprop)"
iv_last_commonality = "scale(percent_freq)"
iv_full_name_algorithm = "scale(full_name_algorithm)"
iv_full_name_commonality = "scale(full_name_commonality)"
iv_all_names = c("scale(last_algorithm) + scale(first_algorithm) + scale(percent_freq) + scale(fprop)")

# control variables
ced_controls = c("white + incumbent + female + lchars + fchars + totvotes1000 + office + seats_comps + factor(year) + factor(co_name)")
primary_controls = c("white + incumbent + female + lchars + fchars + race + num_prim_opps + factor(party) + factor(year) + factor(state)")
general_controls = c("white + incumbent + female + lchars + fchars + race + factor(party) + factor(year) + factor(state)")
